﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Boss.Master" AutoEventWireup="true" CodeBehind="TimeTotal.aspx.cs" Inherits="TimeWork.webmaster.report.TimeTotal" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page-title ui-widget-content ui-corner-all" style="background:#fff;">
	<h1 style="text-align: center;background: #6D91B9;padding: 8px;border-radius: 3px;">
        <b style="text-shadow: 0 0 #fff; color: #fff;">Kỳ báo cáo tháng, năm</b>
    </h1>
	<div class="other">
	<form id="FormTotalMonth" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server">
        </asp:ScriptManager>
        <div class="excel print" style="width: 100%;text-align: right;">
            <asp:ImageButton ID="btnExportExcel" runat="server" 
                ImageUrl="~/resources/img/icons/excel.png" ToolTip="Xuất ra Excel" onclick="btnExportExcel_Click" 
                 />&nbsp;<asp:ImageButton ID="btnXml" runat="server" ImageUrl="~/resources/img/icons/xml.png" ToolTip="Xuất ra XML" />&nbsp;<asp:ImageButton ID="btnPrint" runat="server" ImageUrl="~/resources/img/icons/print.png" ToolTip="In báo cáo" OnClientClick="window.print()" />
        </div>  
        <table style="border-spacing: 10px;" width="850px">
            <tr>
                <td class="tdLabel" style="width: 92px;" valign="top">Cục, Vụ, Viện:</td>
                <td valign="top" colspan="2">
                    <asp:DropDownList ID="ddlCompany" runat="server" style="margin-top: 3px;" 
                        AutoPostBack="True" onselectedindexchanged="ddlCompany_SelectedIndexChanged">
                    </asp:DropDownList>                  
                </td>
            </tr>
            <tr>
                <td class="tdLabel" style="width: 125px;">Kỳ báo cáo:</td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                        <div class="bounder" style="margin: 5px;">
                            <asp:RadioButton ID="rbMonth" runat="server" Text=" Báo cáo theo tháng" 
                                GroupName="Type" AutoPostBack="True" 
                                oncheckedchanged="rbMonth_CheckedChanged" Width="140px"/>
                            &nbsp;
                            <asp:DropDownList ID="ddlYear" runat="server">
                                <asp:ListItem Value="2012" Text="2012"></asp:ListItem>
                                <asp:ListItem Value="2013" Text="2013"></asp:ListItem>
                                <asp:ListItem Value="2014" Text="2014"></asp:ListItem>
                                <asp:ListItem Value="2015" Text="2015"></asp:ListItem>
                            </asp:DropDownList>&nbsp;
                            <asp:DropDownList ID="ddlMonth" runat="server">
                                <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                <asp:ListItem Value="6" Text="6"></asp:ListItem>
                                <asp:ListItem Value="7" Text="7"></asp:ListItem>
                                <asp:ListItem Value="8" Text="8"></asp:ListItem>
                                <asp:ListItem Value="9" Text="9"></asp:ListItem>
                                <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                <asp:ListItem Value="11" Text="11"></asp:ListItem>
                                <asp:ListItem Value="12" Text="12"></asp:ListItem>
                            </asp:DropDownList></div>
  
                            <div class="bounder" style="margin: 5px;">
                            <asp:RadioButton ID="rbYear" runat="server" Text=" Báo cáo theo năm" 
                                GroupName="Type" AutoPostBack="True" oncheckedchanged="rbYear_CheckedChanged" 
                                    Width="140px"/>
                            &nbsp;
                            <asp:DropDownList ID="ddlTimeYear" runat="server">
                                <asp:ListItem Value="2012" Text="2012"></asp:ListItem>
                                <asp:ListItem Value="2013" Text="2013"></asp:ListItem>
                                <asp:ListItem Value="2014" Text="2014"></asp:ListItem>
                                <asp:ListItem Value="2015" Text="2015"></asp:ListItem>
                            </asp:DropDownList>
                            </div>
                        </ContentTemplate>           
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td class="tdLabel" style="width: 92px;" valign="top">Mã cấp công việc:</td>
                <td valign="top" colspan="2">

                    <asp:DropDownList ID="ddlCode" runat="server" style="margin-top: 3px;">
                        <asp:ListItem Value="1" Text="Cấp 1"></asp:ListItem>
                        <asp:ListItem Value="2" Text="Cấp 2"></asp:ListItem>
                        <asp:ListItem Value="3" Text="Cấp 3"></asp:ListItem>
                    </asp:DropDownList>
                       
                    &nbsp;<asp:CheckBox ID="cbIsChild" runat="server" 
                        Text="Hiện sản phẩm cấp dưới" />
                       
                </td>
            </tr>
                
            <tr>
                <td colspan="2" align="right" style="text-align:right;">
                    <asp:Button ID="btnGenerate" runat="server" Text="Tạo báo cáo" 
                        CssClass="mybutton" onclick="btnGenerate_Click" />
                </td>
            </tr>
        </table>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="loading">
                    <img src="../../resources/img/icons/loading.gif" style="width: 31px; height: 31px" alt="Loading" /><br />
                    Đang xử lý 
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <div class="hastable">
            <center style=" padding: 10px 0px; "><asp:Label ID="lblData" runat="server" Font-Bold="True" Font-Italic="True" 
                        ForeColor="Maroon"></asp:Label></center>
            <asp:Literal ID="ltrData" runat="server"></asp:Literal>   
        </div>
    </form>
	</div>
</div>
</asp:Content>